import http from '@/utils/http'

export const loginAPI = ({ account, password }) => {
  return http({
    url: '/user/login',
    method: 'post',
    data: {
      account,
      password
    }
  })
}
export const getLikeListAPI = ({ limit = 4 }) => {
  return http({
    url: '/goods/relevant',
    params: {
      limit
    }
  })
}


export const getUserOrder = () => {
  return http({
    url: '/member/order/allOrder',
    method: 'GET'
  })
}
